{include file="header.html"}

<div id="rightTop">
    <p>活动弹窗管理</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
        <li><a class="btn1" href="index.php?app=popup&amp;act=add">{$lang.add}</a></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <input type="hidden" name="app" value="popup" />
            <input type="hidden" name="act" value="index" />
            <select class="querySelect" name="status">
                <option value="">状态</option>
                {html_options options=$status_list selected=$query.status}
            </select>
            <select class="querySelect" name="type">
                <option value="">类型</option>
                {html_options options=$type_list selected=$query.type}
            </select>
            <input type="submit" class="formbtn" value="{$lang.query}" onclick="$('[name=act]').val('index');"/>
            <!--{if $filtered}-->
            <a class="formbtn1" href="index.php?app=popup">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">
        {if $res}{include file=page.top.html}{/if}
    </div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $res}-->
        <tr class="tatr1">
            <td class="firstCell"><span fieldname="id">ID</span></td>
            <td><span fieldname="name">主题/banner名称</span></td>
            <td><span fieldname="type">类型</span></td>
            <td><span fieldname="keyword">显示位置</span></td>
            <td><span fieldname="image">图片</span></td>
            <td><span fieldname="remark">备注</span></td>
            <td><span fieldname="status">状态</span></td>
            <td width="25%">{$lang.handler}</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$res item=v}-->
        <tr class="tatr2">
            <td class="firstCell">{$v.id|escape}</td>
            <td>{$v.title}</td>
            <td>{$v.type_value}</td>
            <td>{$v.k_remark}</td>
            <td class="table-center">{if $v.image}<img src="{$v.image}?{$random_number}" height="30"/>{/if}</td>
            <td>{$v.remark}</td>
            <td>{$v.status_value}</td>
            <td>
                <a href="index.php?app=popup&amp;act=edit&amp;id={$v.id}">{$lang.edit}</a> | <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=popup&amp;act=drop&amp;id={$v.id}');">{$lang.drop}</a>
            </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <div id="dataFuncs">
        <div class="pageLinks">
            {if $res}{include file=page.bottom.html}{/if}
        </div>
    </div>
    <div class="clear"></div>
</div>
{include file="footer.html"}
<script src="//cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
<script src="//cdn.bootcss.com/layer/2.3/layer.js"></script>


